package com.myproject.sbp.member.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class TestController {

    @Value("${server.port}")
    String port;

    /**
     * 测试负载均衡Ribbon
     */
    @GetMapping("/test1")
    public Object test1(){
        return "当前post：" + port;
    }

}